package com.school.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.school.entity.HljtClass;
import com.school.entity.HljtTeacher;
import com.school.dao.HljtClassDao;
import com.school.service.HljtClassService;

@Service
public class HljtClassServiceIpml implements HljtClassService{
	
	@Autowired
	private HljtClassDao hljtClassDao;

	@Override
	@Transactional(readOnly=true)
	public HljtTeacher headmaster() {
		// TODO Auto-generated method stub
		return hljtClassDao.headmaster();
	}

	@Override
	public HljtClass findClass(Integer id) {
			return hljtClassDao.findClass(id);

	}

	@Override
	public List<HljtClass> pageFindClassList(Integer classid, Integer pageSize, Integer pageIndex,String qufen) {
			return hljtClassDao.pageFindClassList(classid, pageSize, pageIndex,qufen);
	}

	@Override
	public Integer updateClass(HljtClass hljtClass) {
		return hljtClassDao.updateClass(hljtClass);
	}

	@Override
	public List<HljtClass> findClasslist() {
		return hljtClassDao.findClasslist();
	}

	@Override
	public List<HljtClass> findGrade() {
		// TODO Auto-generated method stub
		return hljtClassDao.findGrade();
	}

	
	
}
